<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>前后端交互</title>
    <script src="./js/axios.js"></script>
</head>

<body>

    <script>
        axios.get("http://localhost:3000/adata").then(function(ret){
            // 注意 data 属性是固定的
            console.log(ret.data)
        })
    </script>

</body>

</html>